// main.ts
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
// main.ts
// ep 暗黑主题样式
import 'element-plus/theme-chalk/dark/css-vars.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import '../styles/index.scss'
import 'virtual:svg-icons-register'
import router from './router'
import App from './App.vue'
import pinia from '@/store'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})

app.use(pinia)

import './permisstion'

// 注册全局组件
import gloablComponent from './components/index'
app.use(gloablComponent)
app.use(router)
app.mount('#app')
